package com.ejuornal.util;

public class StrToIntArray {
	public static int[] ChangeStrToIntArray(String temp){
		
		
		String name = temp;
		try {
             name = temp.replaceAll(" ", "");
		} catch (Exception e) {   
		 name="";
		} 
		String[] id=name.split(","); 
		int length = id.length;
		int adsIdInt[] =new int[length];
		for(int i=0;i<id.length;i++){ 
		 adsIdInt[i] = Integer.parseInt(id[i]) ;
		}
		return adsIdInt;
	}
}
